package org.goldfish.cookied_chatroom02.dao;

import jakarta.servlet.ServletContext;
import org.goldfish.cookied_chatroom02.database.DaoImpl;

import java.io.IOException;
import java.sql.SQLException;

public class DaoManager {
    public static void init(ServletContext context) throws SQLException, IOException, ClassNotFoundException {
        DaoImpl.init(context);
    }
    public static Dao getInstance() {
        return DaoImpl.getInstance();
    }
    public static void destroy() throws SQLException {
        DaoImpl.getInstance().destroy();
    }
}
